<!DOCTYPE html>
<html>
{include file="public/head" /}
<body>
          <div class="nav-tabs-custom" style="box-shadow:0 0 0 0; margin:5px;">
            <ul class="nav nav-tabs">
            <li class="active"><a href="#tab_1" data-toggle="tab">基础设置</a></li>
            <li><a href="#tab_2" data-toggle="tab">扩展设置</a></li>               
            </ul> 
        <form id="myform" class="myform form-horizontal"  method="post">
        <input type="hidden" id="news_id" name="news_id" value="{$info['news_id']|default=''}"> 
       <div class="box-body">
           <div class="tab-content tab-fade fade active in " id="tab_1"> 
           <div class="row">
            <div class="col-md-4 col-sm-6 col-xs-12 mb10 pr0">
              <div class="input-group">
               <div class="input-group-btn">
               <span class="btn btn-default form-left-title">新闻分类：</span>
               <span class="form-left-title-hide"></span>
               </div>
               <!-- /btn-group -->
              <div class="select-group-t w49" style="margin-right:5px;">
               <select id="news_cid" name="news_cid" class="form-control select2" required="required" placeholder="请选择分类" style="width:100%">
               <option value=''>选择分类</option>
{volist name=":F('_data/listnews')" id="vo"}
{notempty name="vo.son"}
<optgroup label="{$vo.list_name}">
{volist name="vo['son']" id="splist"}
<option value="{$splist.list_id}" {eq name="splist.list_id" value="$info['news_cid']"}selected{/eq}>├ {$splist.list_name}</option>
{/volist}
 </optgroup>
{else/}
 <option value="{$vo.list_id}" {eq name="vo.list_id" value="$info['news_cid']"}selected{/eq}>{$vo.list_name}</option>
{/notempty}
{/volist}
</select></div>    
<div class="select-group-t w49" style="margin-right:5px;">
<select name="news_status" class="form-control select2" style="width:100%">
   <option value="1">已审</option>
    <option value="0" {eq name="info.news_status" value="0" }selected{/eq}>未审</option>
</select> 
</div>

  </div>   
             </div>
                <div class="col-md-4 col-sm-4 col-xs-12 prr0">
               <div class="input-group ">
                <span class="input-group-btn hidden-xs">
                     <button type="button" class="btn btn-default btn-flat form-title">颜色</button>
                   </span>
               <!-- /btn-group -->
               <div class="input-group color-input hidden-xs">
                      <input type="text" class="form-control" name="news_color"  value="{$info.news_color|default=''}">
                     <div class="input-group-addon"><i style="background-color: rgb(0, 0, 0);"></i></div>
                   </div>
                   <span class="input-group-btn">
<span class="pretty success input-xz">
<input name="sendurl" type="checkbox" value="1" id="checkbox" {empty name="info['news_id']"}checked{/empty}> 
<label><i class="mdi mdi-check"></i> 推送百度</label>
</span>
</span>
                   </div> 
                     
             </div>
                <div class="col-md-12 col-sm-12 col-xs-12 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">新闻名称：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" id="news_name" name="news_name" value="{$info.news_name|default=''}" placeholder="填写新闻名称" >    

              </div>   
              </div>
              <div class="col-md-12 col-sm-12 col-xs-12 mb10">
              <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">新闻TAG：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <span class="input-group-btn wh60">
                <input type="text" id="news_tag"  name="news_tag" value="{$info.news_tag|default=''}" class="form-control tag" data-tip="TAG标签" >
                </span>
                <span class="input-group-btn">
                 <button type="button" class="btn btn-success btn-flat btn-editone" href="{:url('tag/showajax',array('sid'=>2))}"  data-name="添加TAG"><i class="fa fa-plus"></i> 添加TAG</button>
                 </span>
              <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">文章标签：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" id="news_label"  name="news_label" value="{$info.news_label|default=''}" placeholder="文章标签说明" class="form-control">
              </div>                
                 
               <span class="input-group-btn">
                <span class="pretty success input-xz">
                <input name="auto_tag" type="checkbox" value="1" id="checkbox" {notempty name=":config('system.system_auto_tag')"}checked{/notempty}> 
                <label><i class="mdi mdi-check"></i> 自动生成</label>
                </span>
                </span>
              </div>
            </div>
            <div class="col-md-12 col-sm-12 col-xs-12 mb10">
            <div class="input-group">
              <div class="input-group-btn">
              <span class="btn btn-default form-title">新闻关键词：</span>
              </div>
              <!-- /btn-group -->
              <input type="text" id="news_keywords"  name="news_keywords" value="{$info.news_keywords|default=''}" class="form-control" placeholder="用于前台页面的关键词,填写关键词获取,留空获取名称关键词长尾词" >

              <span class="input-group-btn">
<span class="pretty success input-xz">
<input name="auto_keywords" type="checkbox" value="1" id="checkbox" {notempty name=":config('system.system_auto_keywords')"}checked{/notempty}> 
<label><i class="mdi mdi-check"></i> 自动获取</label>
</span>
</span>    

            </div>
          </div>    
               <div class="col-md-6 col-sm-8 col-xs-12 mb10 pr0">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">新闻属性：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="hidden" name="news_prty" value="">
             <span class="text-link form-control">
                      {volist name=":parse('textarea',config('setting.document_position'))" id="vo"}
                      <label class="pretty success">
	  <input type="checkbox" name="news_prty[]" value="{$key}" id="checkbox" {if check_attribute($info['news_prty'],$key)}checked="checked"{/if}> 
	  <label><i class="mdi mdi-check"></i> {$vo|msubstr=0,2}</label>
	</label>
                      {/volist} 
            </span> 
               </div> 
               </div> 

              
               <div class="col-md-6 col-sm-12 col-xs-12 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">数据关联：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <span class="text-link form-control">
                <span class="margin15"><a href="{:url('relation/index',array('tid'=>$info['news_id'],'tsid'=>2,'sid'=>1,'types'=>'tid'))}"  data-name="管理关联视频" class="text-link btn-editone" data-width="100%" data-height="100%" data-offset="0px">关联视频({$info.newsvod_count|default='0'})个</a></span>
                <span class="margin15"><a href="{:url('relation/index',array('tid'=>$info['news_id'],'tsid'=>2,'sid'=>3,'types'=>'tid'))}"  data-name="管理关联明星" class="text-link btn-editone" data-width="100%" data-height="100%" data-offset="0px">关联明星({$info.newsstar_count|default='0'})位</a></span>
                </span>
              </div>   
              </div>  

               <div class="col-md-12 col-sm-12 col-xs-12 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">视频关联：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input class="form-control" id="news_vod_keywords" name="news_vod_keywords" type="text" value="{$info['news_vod_keywords']|default=''}">
               <span class="input-group-btn">
                <button type="button" class="btn btn-success btn-flat btn-editone" href="{:url('vod/index',array('view'=>1))}" data-name="添加关联视频">添加</button>
               </span>
              </div>   
              </div>
               <div class="col-md-12 col-sm-12 col-xs-12 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">明星关联：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input class="form-control" id="news_star_keywords" name="news_star_keywords" type="text" value="{$info['news_star_keywords']|default=''}">
               <span class="input-group-btn">
                <button type="button" class="btn btn-success btn-flat btn-editone" href="{:url('star/index',array('view'=>1))}" data-name="添加关联明星">添加</button>
               </span>                
              </div>   
              </div>                                                   
              <div class="col-md-6 col-sm-12 col-xs-12 mb10 pr0">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">新闻图片：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
               <input class="form-control" size="50" id="news_pic" name="news_pic" type="text" value="{$info['news_pic']|default=''}">
<span class="input-group-btn">
                      <button type="button" class="btn btn-primary btn-flat plupload" id="plupload-image" data-input-id="news_pic" data-mimetype="image/*"   data-multiple="false"><i class="fa fa-upload"></i> 上传</button>
                    </span>
                     
              </div>   
              </div>
               <div class="col-md-6 col-sm-12 col-xs-12 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">新闻大图：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
               <input class="form-control" size="50" id="news_bigpic" name="news_bigpic" type="text" value="{$info['news_bigpic']|default=''}">
<span class="input-group-btn">
                      <button type="button" class="btn btn-primary btn-flat plupload" id="plupload-images" data-input-id="news_bigpic" data-mimetype="image/*"   data-multiple="false"><i class="fa fa-upload"></i> 上传</button>
                    </span>
                     
              </div>   
              </div>
              <div class="col-md-4 col-sm-6 col-xs-12 mb10 pr0">
                  <div class="input-group">
                   <div class="input-group-btn">
                   <span class="btn btn-default form-left-title">清晰度：</span>
                   <span class="form-left-title-hide"></span>
                   </div>
                   <!-- /btn-group -->
                   <div class="select-group-t" style="margin-right:5px;width:100%">
                   <select name="news_clarity" id="news_clarity" class="form-control select2" style="width:100%">
                      <option value="">选择</option>
                      <option value="320P标清" {eq name="$info.news_clarity" value="320P标清"}selected{/eq}>320P标清</option>
                      <option value="480P高清" {eq name="$info.news_clarity" value="480P高清"}selected{/eq}>480P高清</option>
                      <option value="720P超清" {eq name="$info.news_clarity" value="720P超清"}selected{/eq}>720P超清</option>
                      <option value="1080P全高清" {eq name="$info.news_clarity" value="1080P全高清"}selected{/eq}>1080P全高清</option>
                      <option value="4K" {eq name="$info.news_clarity" value="4K"}selected{/eq}>4K</option>
                  </select>
                   </div>
                  </div> 
                  </div>
                  
                  <div class="col-md-8 col-sm-6 col-xs-12 mb10"> 
                  <div class="input-group">
                   <div class="input-group-btn">
                   <span class="btn btn-default form-left-title">时间：</span>
                   <span class="form-left-title-hide"></span>
                   </div>
                   <input class="form-control" id="news_playtime" name="news_playtime" type="text" value="{$info['news_playtime']|default=''}" placeholder="几分几秒">      
                  </div>                
                 </div>

               <div class="col-md-4 col-sm-6 col-xs-12 mb10 pr0">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">播放器名：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <div class="select-group-t" style="margin-right:5px;width:100%">
                <select name="news_playname" id="news_playname" class="form-control select2" style="width:100%">
                 <option value=''>选择播放器</option>
                {volist name=":F('_play/play')" id="play"}<option value="{$play['play_name']}" {if condition="$play['play_name'] eq $info.news_playname"}selected{/if}>{$i}.{$play['play_name']}.{$play['play_title']}</option>{/volist}</select>
                </div>
               </div> 
               </div>
               
               <div class="col-md-8 col-sm-6 col-xs-12 mb10"> 
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">播放地址：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input class="form-control"  id="news_playurl" name="news_playurl" type="text" value="{$info['news_playurl']|default=''}">      
               </div>                
              </div>
                               <div class="col-md-12 col-sm-12 col-xs-12 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">显示方式：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <span class="text-link form-control">
     <label class="pretty circle primary">
	  <input name="news_mid" type="radio" value="0" {empty name="info.news_mid"}checked{/empty}> 
	  <label><i class="default"></i> 默认方式</label>
	</label>
    <label class="pretty circle primary">
	  <input name="news_mid" type="radio" value="1" {eq name="info.news_mid" value="1"}checked{/eq}> 
	  <label><i class="default"></i> 图片幻灯</label>
	</label>
        <label class="pretty circle primary">
	  <input name="news_mid" type="radio" value="2" {eq name="info.news_mid" value="2"}checked{/eq}> 
	  <label><i class="default"></i> 图片分页</label>
	</label>
    <span class="hidden-xs hidden-sm"> &nbsp;&nbsp;&nbsp;&nbsp;默认方式-将按照-系统设置中-文章开启图集数-设置的图片数量显示为图集</span>
	</span> 
    
               </div> 
               </div>                                         
                 <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">新闻简介：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <textarea  class="form-control" name="news_remark" id="news_remark"  data-tip="留空自动提取">{$info.news_remark|default=''}</textarea>
              </div>
                            
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">新闻介绍：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <textarea  class="editor"  id="news_content" name="news_content"  style=" width:100%;min-height:300px">{$info['news_content']}</textarea>
              </div> 
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">更新时间：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
              <input type="text" name="news_addtime" value="{notempty name="info.news_addtime"}{$info.news_addtime|date='Y-m-d H:i:s',###}{else/}{:date('Y-m-d H:i:s',time())}{/notempty}" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss">
<span class="input-group-btn">
<span class="pretty success input-xz">
<input name="news_checktime" type="checkbox" value="1" id="checkbox" {notempty name=":config('system.system_uptime')"}checked{/notempty}> 
<label><i class="mdi mdi-check"></i> 更新时间</label>
</span>
</span>     
              </div>              
               </div>
              <!-- /row --> 
            </div>
            <!-- /.tab_1-->
           <div class="tab-content tab-fade fade " id="tab_2">
            <div class="row">
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">新闻标题：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" id="news_title"  name="news_title" value="{$info.news_title|default=''}" placeholder="用于前台页面的SEO标题" class="form-control">
              </div>
              
                 <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">新闻描述：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <textarea  class="form-control" name="news_description" id="news_description">{$info['news_description']|default=''}</textarea>
              </div>
              <div class="col-md-4 col-sm-4 col-xs-6 mb10 prrr0">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">首字母：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                 <input type="text" name="news_letter"  value="{$info.news_letter|default=''}" class="form-control text-center" placeholder="留空自动获取">
              </div>   
              </div>             
             <div class="col-md-4 col-sm-4 col-xs-6 mb10 pr00">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">推荐星级：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input name="news_stars" id="news_stars" type="hidden" value="{$info.news_stars|default=''}">
                <span class="text-link form-control pr00">
                {volist name=":admin_star_arr($info.news_stars)" id="ajaxstar"}<img src="{$Think.TPL_PATH}tpl/zanpianadmin/img/star{$ajaxstar}.gif" id="news_{$i}" class="addstars" width="19px" height="19px">{/volist}
                </span>
              </div>   
              </div>              
             <div class="col-md-4 col-sm-4 col-xs-6 mb10 pr000">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">独立模版：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" name="news_skin"  value="{$info.news_skin|default=''}" class="form-control text-center" placeholder="留空使用分类中内容模版">
              </div>   
              </div> 
              
             <div class="col-md-4 col-sm-4 col-xs-6 mb10 pr00">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">总人气：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" id="news_hits" name="news_hits"  value="{$info.news_hits|default=''}" class="form-control text-center" >
              </div>   
              </div>
              
             <div class="col-md-4 col-sm-4 col-xs-6 mb10 prrr0">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">月人气：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" name="news_hits_month"  value="{$info.news_hits_month|default=''}" class="form-control text-center" >
              </div>   
              </div> 
              <div class="col-md-4 col-sm-4 col-xs-6 mb10 ">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">周人气：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" name="news_hits_week"  value="{$info.news_hits_week|default=''}" class="form-control text-center" >
              </div>   
              </div>                                          
                                                                                    
              <div class="col-md-4 col-sm-4 col-xs-6 mb10 prrr0">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">日人气：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" name="news_hits_day"  value="{$info.news_hits_day|default=''}" class="form-control text-center" >
              </div>   
              </div> 
              
               <div class="col-md-4 col-sm-4 col-xs-6 mb10 pr00">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">评分值：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" id="news_gold" name="news_gold"  value="{$info.news_gold|default=''}" class="form-control text-center" >
              </div>   
              </div>
                           
                <div class="col-md-4 col-sm-4 col-xs-6 mb10 pr000">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">评分人：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" id="news_golder" name="news_golder"  value="{$info.news_golder|default=''}" class="form-control text-center" >
              </div>   
              </div>
              </div>
              <!-- /row -->
                             
              
                                             
            </div> 
            <!-- /.tab_2 -->
         
        <div class="box-footer {notempty name=":request()->param('dialog')"}hidden{/notempty} layer-footer">
          <div  class="footer-btn">
               <button type="submit" class="btn btn-success btn-embossed">确定</button>
               <button type="reset" class="btn btn-default btn-embossed">重置</button>
               {notempty name=":request()->param('dialog')"}
               <button type="reset" class="btn btn-primary btn-embossed btn-close" onClick="layer.closeAll();"> 关闭</button>
               {/notempty}
            </div>
       </div>
       <!-- /.box-footer -->     
</div>
<!-- /.box-body --> 
</form>
</div>
<!-- /.nav-tabs-custom -->    
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.vod();
    $(document).on('click', ".addurl", function() {
			var $old = $("#urldata>.urldata:last").html();
			$urln = $("#urldata>.urldata").length;
			$old = $old.replace("周期" + $urln, "周期" + ($urln + 1));
			$("#urldata>.urldata:last-child").after('<div class="urldata input-group mb10" id="data_' + ($urln + 1) + '">' + $old + '</div>');
			$("#urldata>.urldata:last #news_date").val($("#news_date:last option").val());
			$("#urldata>.urldata:last textarea").val('');
					
	})		

});	
</script>
</body>
</html>
